﻿//Author:Joshua Reisenauer
//Description:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace INF7GEN
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            for (int x = 0; x < args.Length; x++)//args debugging, need to use -test as first argument
            {
                if (args[x] != null && args[0] == "-test")
                    MessageBox.Show(args[x]);
            }

            if (args.Length > 0 && (args[0] == "-h" || args[0] == "-H"))//help argument
            {
                MessageBox.Show("INF7GEN {argument}/{File to Load}\n"
                    + "\nArgument Definitions:\n"
                    + "\n-test :: tests to see if arguments are being passed in correctly.\n-h :: shows this help screen."
                    + "\nExample Cases:\n"
                    + "\nINF7GEN ./game.7gn\nINF7GEN -test\nINF7GEN -h"
                    ,"INF7GEN HELP");
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if(args.Length > 0)
                Application.Run(new Form1(args[0]));
            else
                Application.Run(new Form1());
        }
    }
}
